import request from '@/utils/request'

//获取二级分类列表
export const getCategoryAPI=(id)=>{
    return request({
        url:'/category',
        params:{
            id
        }
    })
}
//获取二级分类数据
export const getCategoryFilter=(id)=>{
    return request({
        url:'/category/sub/filter',
        params:{
            id
        }
    })
}
//获取基础列表数据
export const getSubCategoryAPI = (data) => {
    return request({
      url:'/category/goods/temporary',
      method:'POST',
      data
    })
  }